package com.alibaba.shopping_admin_service.mapper;

import com.alibaba.shopping_common.pojo.Admin;
import com.alibaba.shopping_common.pojo.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * @ClassName AdminMapper
 * @Description TODO
 * @Author Leo
 * @Date 2024/12/5 19:05
 */
public interface AdminMapper extends BaseMapper<Admin> {

    /**
     * 根据id查询Admin信息
     * @return
     */
    Admin findAdminById(long aid);

    /**
     * 根据用户名查询器拥有的所有权限
     * @param userName
     * @return
     */
    List<Permission> findAllPermission(String userName);
}




